package com.atguigu.userprofile.service;

import com.atguigu.userprofile.bean.UserGroup;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

public interface UserGroupService  extends IService<UserGroup> {

       //1  保存分群的基本信息到mysql中
       public  void saveUserGroupInfo(UserGroup userGroup);

       // 2 生成人群包
       public  void  genUserGroupUids(UserGroup userGroup ) ;

       //3  转储到redis
       public  void  saveUserGroupUidsToReids(UserGroup userGroup ) ;

       //4 评估人数
       public Long evaluateNum(UserGroup userGroup);

       //5清除clickhouse对应的分群
       public void  clearUserGroupUidCk(String userGroupId);


       //6 清除redis对应的分群
       public void  clearUserGroupUidRedis(String userGroupId);
}
